package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
/*
* 菜品
* */
@Data
public class Dish {
    //菜的id
    private Integer id;
    //商家id
    private Integer merchantId;
    //名称
    private String name;
    //分类id
    private Integer categoryId;
    //该菜品单价
    private BigDecimal price;
    //图片路径
    private String image;
    //该菜品描述
    private String description;
    //该菜排名权重（越大排的越靠前，可决定置顶）
    private Integer level;
    //种类id
    private Integer typeId;
    //种类名称
    private String typeName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //在售状态（0审核 1打烊 2在售）
    private int status;
    //库存
    private Integer inventory;
    //月销量
    private Integer salesVolume;

}
